package com.huike.report.mapper;

import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface ReportMapper {
    /**
     * 查询线索数目
     * @param beginCreateTime
     * @param endCreateTime
     * @param username
     * @return
     */
    Integer getCluesNum(String beginCreateTime, String endCreateTime, String username);

    /**
     * 查询商机数目
     * @param beginCreateTime
     * @param endCreateTime
     * @param username
     * @return
     */
    Integer getBusinessNum(String beginCreateTime, String endCreateTime, String username);

    /**
     * 查询合同数目
     * @param beginCreateTime
     * @param endCreateTime
     * @param username
     * @return
     */
    Integer getContractNum(String beginCreateTime, String endCreateTime, String username);

    /**
     * 查询销售金额
     * @param beginCreateTime
     * @param endCreateTime
     * @param username
     * @return
     */
    Double getSalesAmount(String beginCreateTime, String endCreateTime, String username);

    /**
     * 查询今日线索数量
     * @param today
     * @param username
     * @return
     */
    Integer getTodayCluesNum(String today, String username);

    /**
     * 查询今日商机数量
     * @param today
     * @param username
     * @return
     */
    Integer getTodayBusinessNum(String today, String username);

    /**
     * 查询今日合同数量
     * @param today
     * @param username
     * @return
     */
    Integer getTodayContractNum(String today, String username);

    /**
     * 查询今日合同金额
     * @param today
     * @param username
     * @return
     */
    Double getTodaySalesAmount(String today, String username);

    /**
     * 查询待跟进线索数目
     * @param beginCreateTime
     * @param endCreateTime
     * @param username
     * @return
     */
    Integer getTofollowedCluesNum(String beginCreateTime, String endCreateTime, String username);

    /**
     * 查询待跟进商机数目
     * @param beginCreateTime
     * @param endCreateTime
     * @param username
     * @return
     */
    Integer getTofollowedBusinessNum(String beginCreateTime, String endCreateTime, String username);

    /**
     * 查询待分配线索数目
     * @param beginCreateTime
     * @param endCreateTime
     * @param username
     * @return
     */
    Integer getToallocatedCluesNum(String beginCreateTime, String endCreateTime, String username);

    /**
     * 查询待分配商机数目
     * @param beginCreateTime
     * @param endCreateTime
     * @param username
     * @return
     */
    Integer getToallocatedBusinessNum(String beginCreateTime, String endCreateTime, String username);
}
